# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import urllib
from reportlab.graphics.charts.lineplots import LinePlot
from reportlab.graphics.charts.textlabels import Label
from reportlab.graphics.shapes import *
from reportlab.graphics import renderPDF

def draw_report(reportstr="hello,wenke"):
     draw=Drawing(100,100)
     s=String(50,50,reportstr,textAnchor='middle')
     pdata=[(4,22),(8,44),(15,48),(16,32)]
     pdata1=[(19,55),(22,2)]
     pliy=PolyLine(pdata)
     draw.add(s)
     draw.add(pliy)
     draw.add(PolyLine(pdata1))
     renderPDF.drawToFile(draw,'wenke.pdf','a simple pdf')

draw_report()